# Makefile - makefile for bsp/config/ads834x
#
# Copyright 1984-2005 Wind River Systems, Inc.
#
# modification history
# --------------------
# 01a,19jan05,dtr  created from ads827x Makefile
#
# DESCRIPTION
# This file contains rules for building VxWorks for the
# Motorola Voyager Application Development Support Board with a PowerPC 8272
#
# INCLUDES
#     makeTarget
#*/

CPU              = PPC603
TOOL             = gnu

TGT_DIR = $(WIND_BASE)/target
include $(PROJECT_MAKE)/vxworks/defs.bsp

CONFIG_ALL  = all

## Only redefine make definitions below this point, or your definitions will
## be overwritten by the makefile stubs above.

TARGET_DIR	= bsp8313
VENDOR		= Motorola
BOARD		= ads8308

USR_ENTRY   = usrInit

LIB_EXTRA   = romExtras.a

RELEASE		+= bootrom_uncmp.hex

## The constants ROM_TEXT_ADRS, ROM_SIZE, and RAM_HIGH_ADRS are defined
## in config.h and Makefile. All definitions for these constants must be
## identical.

ROM_TEXT_ADRS    = ff800100 # ROM entry address
ROM_SIZE         = 00100000 # number of bytes of ROM space
ROM_WARM_ADRS    = ff800108 # ROM warm entry address
ROM_LINK_ADRS	   = ff800000

RAM_LOW_ADRS     = 00010000 # RAM text/data address
RAM_HIGH_ADRS    = 03000000 # RAM text/data address

# uncomment the following line to enable debugging
#ADDED_CFLAGS +=  -g -O
EXTRA_DEFINE   = -DVXWORKS -DMPC83XX
#uncomment cfiscs.o for TFFS support
MACH_EXTRA      = cacheALib.obj sst39vf040mtd.o  s29gl128mtd.o speed.o serdes.o io.o pcie.o #cfiscs.o
EXTRA_MODULES   = 

## Only redefine make definitions above this point, or the expansion of 
## makefile target dependencies may be incorrect.

include $(PROJECT_MAKE)/vxworks/rules.bsp

# Additional objects needed by romInit

EXTRA_OBJS       = sysAUtils.o sysUtils.o motTsecEnd.o  sysTffs.o file.o unarj.o bspInit.o cpldDriver.o sysGPIO.o sysMotI2c.o sysMpc8308I2c.o sysRTC.o sysTMP75.o sysUart.o sysE2PROM.o sysFanControl.o sysPowerManagement.o fsl_elbc_nand.o #udptest.o

romExtras.a: $(EXTRA_OBJS)
	$(AR) crus $@ $(EXTRA_OBJS)

-include $(PROJECT_MAKE)/Make.lib_link_path
